home *** CD-ROM | disk | FTP | other *** search
- <IMG "FTLLOGO.BMP">
-
- Welcome to the FTL 2.1 Demo!
-
- This file explains the features of the FTL 2.1 Hypertext/ Hypermedia components
-
- <IMG "DELLOGO.BMP"> <IMG "S_CIUPKC.BMP">
-
- for Borland Delphi from C.I.U.P.K.C. Software.
-
- <IMG "HLINE.BMP">
-
- THyperTextParser Component
-
- This component encapsulates receiving matched and unmatched text from the
- Regular Expression Parser component and either handling it internally or
- ignoring it or sending it on to the HTDisplayBox for display. It has the
- following interface declaration:
-
- THyperTextParser = class( TComponent )
- private
- { private declarations }
- FOnAssertCoolLine : TStringEvent;
- FOnAssertHotLine : TStringEvent;
- FOnAssertCoolImage : TImageEvent;
- FOnAssertHotImage : TImageEvent;
- FOnHandleCoolLine : TStringEvent;
- FOnHandleHotLine : TStringEvent;
- FOnHandleCoolImage : TImageEvent;
- FOnHandleHotImage : TImageEvent;
- FOnAssertMatchFound : TMatchEvent;
- FOnHandleMatchFound : TMatchEvent;
- FOnGetURLType : TStringEvent;
- public
- CurrentLinkArray : LinkItemArray;
- CurrentTotalLinkItems : Integer;
- CurrentHTDisplayBox : THTDisplayBox;
- TheREPParser : TRegularExpressionParser;
- CurrentCoolText : String;
- CurrentHotText : String;
- CurrentHTLinkID : Integer;
- CurrentCoolImage : Timage;
- CurrentHotImage : Timage;
- CurrentHILinkID : integer;
- CurrentHTID : Integer;
- constructor Create( AOwner : TComponent ); override;
- function AssertCoolText( var CoolString : String ) : boolean;
- function AssertHotText( var HotString : String; LinkID : Integer ) : boolean;
- function AssertCoolImage( CoolImage : TImage ) : boolean;
- function AssertHotImage( HotImage : TImage; LinkID : integer;
- AnchorTarget : Boolean ) : boolean;
- procedure GetLIArray( var Value : LinkItemArray );
- procedure SetLIArray( Value : LinkItemArray );
- procedure GetHTDisplayBox( var Value : THTDisplayBox );
- procedure SetHTDisplayBox( Value : THTDisplayBox );
- function GetTotalLinkItems : Integer;
- procedure GetCurrentREPParser( var Value : TRegularExpressionParser );
- procedure SetCurrentREPParser( Value : TRegularExpressionParser );
- procedure GetCoolImage( var CoolImage : TImage );
- procedure GetHotImage( var hotImage : TImage );
- function GetHotImageLinkID : Integer;
- function GetCoolText : String;
- function GetHotText : String;
- function GetCurrentHTID : Integer;
- procedure SetTheREPParser( Value : TRegularExpressionParser );
- procedure ScanTextLine( TheLine : String );
- procedure ScanTextLines( TheLines : TMemo );
- procedure HandleCoolLine( TheCoolLine : String ); virtual;
- procedure HandleHotLine( TheHotLine : String; TheHTID : integer ); virtual;
- procedure HandleCoolImage( TheCoolImage : TImage ); virtual;
- procedure HandleHotImage( TheHotImage : TImage; TheHTID : Integer;
- AnchorTarget : Boolean ); virtual;
- function AssertMatchFound( MatchID : Integer;
- var ReturnString : String ) : boolean;
- function HandleMatchFound( MatchID : Integer ;
- var ReturnString : String ) : boolean; virtual;
- function GetURL( TheString : String ) : String;
- function CreateNewLink( AnchorName,
- FileName : String;
- TheType : Integer ) : Integer;
- procedure GetImage( TheURL : String; var TheImage : TImage );
- function GetURLType( TheString : String ) : Integer; virtual;
- procedure GetGifFile( TheBitmap : TBitmap; TheFileName : String );
- function FindLocalAnchor( TheAnchor : String ) : Integer;
- function ParseURL( TheString : String;
- var URL1,
- URL2 : String ) : Integer;
- { public declarations }
- published
- { object inspector properties }
- property OnAssertCoolLine : TStringEvent read FOnAssertCoolLine
- write FOnAssertCoolLine;
- property OnAssertHotLine : TStringEvent read FOnAssertHotLine
- write FOnAssertHotLine;
- property OnAssertCoolImage : TImageEvent read FOnAssertCoolImage
- write FOnAssertCoolImage;
- property OnAssertHotImage : TImageEvent read FOnAssertHotImage
- write FOnAssertHotImage;
- property OnHandleCoolLine : TStringEvent read FOnHandleCoolLine
- write FOnHandleCoolLine;
- property OnHandleHotLine : TStringEvent read FOnHandleHotLine
- write FOnHandleHotLine;
- property OnHandleCoolImage : TImageEvent read FOnHandleCoolImage
- write FOnHandleCoolImage;
- property OnHandleHotImage : TImageEvent read FOnHandleHotImage
- write FOnHandleHotImage;
- property OnAssertMatchFound : TMatchEvent read FOnAssertMatchFound
- write FOnAssertMatchFound;
- property OnHandleMatchFound : TMatchEvent read FOnHandleMatchFound
- write FOnHandleMatchFound;
- property OnGetURLType : TStringEvent read FOnGetURLType
- write FOnGetURLType;
- property TheRegularExpressionParser : TRegularExpressionParser read TheREPParser
- write SetTheREPParser;
- end;
-
-
- <IMG "WAVELINE.BMP">
-
- <A HREF="DEMO1.DHT">Click here</A> to return to the main demo file.
-
-